package com.thzy.bbs.thread;

import android.webkit.WebView;

import com.thzy.bbs.common.CommonUtils;

/**
 * 推送到webView子线程
 *
 * @author Lirui
 * @date 2017/1/4 18:46
 */

public class WebViewLoadThread implements Runnable {
    private WebView webView;
    private String functionName;
    private String content;

    public WebViewLoadThread(WebView webView, String functionName, String content) {
        this.webView = webView;
        this.functionName = functionName;
        this.content = content;
    }

    @Override
    public void run() {
        webView.loadUrl(CommonUtils.functionJoin(functionName, content));
    }
}
